package com.dl.base.ui.image

import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView

interface ImageLoader {

    fun load(url: String, imageView: ImageView)

    fun load(
        url: String,
        holderResourceId: Int,
        errorResourceId: Int,
        imageView: ImageView
    )

    fun load(uri: Uri, imageView: ImageView)

    fun load(resId: Int, imageView: ImageView)

    fun load(
        url: String,
        holderDrawable: Drawable?,
        errorDrawable: Drawable?,
        imageView: ImageView
    )

    fun load(
        url: String,
        holderDrawable: Drawable?,
        errorDrawable: Drawable?,
        imageView: ImageView,
        radius: Int
    )

    fun loadThumbnail(url: String, imageView: ImageView, width: Int, height: Int)

    fun loadThumbnail(
        url: String,
        holderResourceId: Int,
        errorResourceId: Int,
        imageView: ImageView, width: Int, height: Int
    )
}